#pragma once

#include <ctype.h>

class FilePathConverter
{
public:
    inline std::string operator()(const std::string &path)
    {
#ifdef _WIN32
        std::string ret(path.size());
        for (size_t i = 0; i < path.size(); ++i)
        {
            char ch = tolower(path[i]);
            if (ch == '/')
                ch = '\\';
            ret[i] = ch;
        }
        return ret;
#else
        return path;
#endif
    }
};
